<?php

namespace addons\mydemo\controller;

use think\addons\Controller;

class Index extends Controller
{

    public function index()
    {
        $info = get_addon_info('epay');
        if($info && $info['state']){
            //代码逻辑
        } else {
            exception("请确保微信支付宝整合插件已安装并启用");
        }
        return $this->view->fetch();
    }

}
